$(function(){
    var xyzIds = $("#xyzIds").val();
    $('#grid_xyz_hk').datagrid({
        url:$.webPath() + "/zjgl/xyz/xyzListByIds?xyzsflxType=1&&xyzIds="+xyzIds,
        fitColumns:true,
        singleSelect:true,
        pagination:true,
        pageNumber:1,
        pageSize:10,
        fit:true,
//        rownumbers:true,
//        striped:true,
        columns:[[
            {field:'xyzhm', title:'信用证号码', width:25,align: 'center'},
            {field:'yfczyh_qc', title:'出证行', width:30,align: 'center'},
            {field:'dqje', title:'证面金额', width:20,align: 'right', formatter:function(value){
                var sl = formatJe(value,",");
                return sl;
            }},
            {field:'yll', title:'月利率', width:20,align: 'right'},
            {field:'bzjbl', title:'保证金比例', width:25,align: 'right'},
            {field:'lxe', title:'利息额',align: 'right', width:20, formatter:function(value){
                var sl = formatJe(value,",");
                return sl;
            }},
            {field:'jkrq', title:'借款日期', width:20,align: 'center'},
            {field:'dqrq', title:'到期日', width:20,align: 'center'}
        ]]
    });
    //级联
    $("#xyzhk_gsmcId").jgbmtree($("#bmmc_Id"),$("#sqr_Id"),$("#bmmc_Id").val(),$("#sqr_Id").val());
}) ;